#! /usr/bin/env python
#coding=utf-8

from eventlet import event
import eventlet
evt=event.Event()

def waiter():
    print 'about to wait'
    result=evt.wait()
    print 'waited for',result
    
_=eventlet.spawn(waiter)
eventlet.sleep()#等价于eventlet.sleep(0)
evt.send('a')
eventlet.sleep()

